//
//  DownLoaderManager.h
//  DownloadManager
//
//  Created by 马滕亚 on 2020/4/15.
//  Copyright © 2020 M.Y.A. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface DownLoaderManager : NSObject

+ (instancetype)shareDownLoaderManager;

// 下载
- (void)downloadWithUrl:(NSURL *)url progress:(void(^)(float progress))progress completion:(void(^)(NSString *filePath))completion faied:(void(^)(NSString *errorMsg))faied;

// 暂停
- (void)pauseWithUrl:(NSURL *)url;
@end

NS_ASSUME_NONNULL_END
